import Cookies from 'js-cookie'

export default {
  namespaced: true,
  state: {
    // 项目刚刚开启就获取token
    ifFold: (Cookies.get('IS_FOLD') === 'true')
  },
  getters: {
  },
  mutations: {
    // 设置Token
    TOGGLE_Fold (state) {
      console.log(1)
      state.ifFold = !state.ifFold
      Cookies.set('IS_FOLD', (state.ifFold))
      console.log(Cookies.get('IS_FOLD'))
    }

  },
  actions: {

  }
}
